package com.ruoyi.community.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.community.mapper.CommunityUserMapper;
import com.ruoyi.community.domain.CommunityUser;
import com.ruoyi.community.service.ICommunityUserService;

/**
 * 业主管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-16
 */
@Service
public class CommunityUserServiceImpl implements ICommunityUserService 
{
    @Autowired
    private CommunityUserMapper communityUserMapper;

    /**
     * 查询业主管理
     * 
     * @param userId 业主管理主键
     * @return 业主管理
     */
    @Override
    public CommunityUser selectCommunityUserByUserId(Long userId)
    {
        return communityUserMapper.selectCommunityUserByUserId(userId);
    }

    /**
     * 查询业主管理列表
     * 
     * @param communityUser 业主管理
     * @return 业主管理
     */
    @Override
    public List<CommunityUser> selectCommunityUserList(CommunityUser communityUser)
    {
        return communityUserMapper.selectCommunityUserList(communityUser);
    }

    /**
     * 新增业主管理
     * 
     * @param communityUser 业主管理
     * @return 结果
     */
    @Override
    public int insertCommunityUser(CommunityUser communityUser)
    {
        return communityUserMapper.insertCommunityUser(communityUser);
    }

    /**
     * 修改业主管理
     * 
     * @param communityUser 业主管理
     * @return 结果
     */
    @Override
    public int updateCommunityUser(CommunityUser communityUser)
    {
        return communityUserMapper.updateCommunityUser(communityUser);
    }

    /**
     * 批量删除业主管理
     * 
     * @param userIds 需要删除的业主管理主键
     * @return 结果
     */
    @Override
    public int deleteCommunityUserByUserIds(Long[] userIds)
    {
        return communityUserMapper.deleteCommunityUserByUserIds(userIds);
    }

    /**
     * 删除业主管理信息
     * 
     * @param userId 业主管理主键
     * @return 结果
     */
    @Override
    public int deleteCommunityUserByUserId(Long userId)
    {
        return communityUserMapper.deleteCommunityUserByUserId(userId);
    }
}
